import Layout from '../views/layout/Layout'

export const SysRouter = {
  path: '/sys',
  component: Layout,
  redirect: 'noredirect',
  alwaysShow: true,
  name: 'sysManage',
  meta: {
    title: '权限管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'data',
      component: () => import('@/views/radio/sys/data'),
      name: '数据权限',
      meta: {
        // perms: ['GET /admin/admin/list', 'POST /admin/admin/create', 'POST /admin/admin/update', 'POST /admin/admin/delete'],
        title: '数据权限',
        noCache: true,
        subTitle: '数据权限'
      }
    }
  //   {
  //     path: 'admin',
  //     component: () => import('@/views/radio/sys/admin'),
  //     name: 'admin',
  //     meta: {
  //       perms: ['GET /admin/admin/list', 'POST /admin/admin/create', 'POST /admin/admin/update', 'POST /admin/admin/delete'],
  //       title: '人员管理',
  //       noCache: true
  //     }
  //   },
  //   {
  //     path: 'log',
  //     component: () => import('@/views/radio/sys/log'),
  //     name: 'log',
  //     meta: {
  //       perms: ['GET /admin/log/list'],
  //       title: '日志管理',
  //       noCache: true
  //     }
  //   },
  //   {
  //     path: 'role',
  //     component: () => import('@/views/radio/sys/role'),
  //     name: 'role',
  //     meta: {
  //       perms: ['GET /admin/role/list', 'POST /admin/role/create', 'POST /admin/role/update', 'POST /admin/role/delete', 'GET /admin/role/permissions', 'POST /admin/role/permissions'],
  //       title: '角色管理',
  //       noCache: true
  //     }
  //   },
  //   {
  //     path: 'params',
  //     component: () => import('@/views/radio/sys/params'),
  //     name: 'params',
  //     meta: {
  //       perms: ['GET /admin/storage/list', 'POST /admin/storage/create', 'POST /admin/storage/update', 'POST /admin/storage/delete'],
  //       title: '参数管理',
  //       noCache: true
  //     }
  //   },
  //   {
  //     path: 'sub',
  //     component: () => import('@/views/radio/sys/sub'),
  //     name: 'sub',
  //     meta: {
  //       perms: ['GET /admin/storage/list', 'POST /admin/storage/create', 'POST /admin/storage/update', 'POST /admin/storage/delete'],
  //       title: '子账号管理',
  //       noCache: true
  //     }
    // }
  ]
}

export default SysRouter
